package com.caiya.mapper;


import com.caiya.cart.dto.cartinfo.CartAllListDto;
import com.caiya.cart.dto.cartinfo.CartInfoListDto;
import com.caiya.cart.dto.cartinfo.CartInfoOrderSumDto;
import com.caiya.cart.entity.CartInfo;
import com.caiya.cart.vo.cartinfo.CartAllListVo;
import com.caiya.cart.vo.cartinfo.CartInfoListVo;
import com.caiya.cart.vo.cartinfo.CartInfoUpdateVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CartInfoMapper extends BaseMapper<CartInfo>{
    List<CartInfoListDto> list(CartInfoListVo cartInfoListVo);

    int update(CartInfoUpdateVo cartInfoUpdateVo);

    List<CartAllListDto> allList(CartAllListVo cartAllListVo);

    CartInfoOrderSumDto cartInfoOrderSum(@Param("id") Long id);
}